package com.atqinke.designpattern.behavioraltype.state;/**
*@BelongsProject: BasicConnection
*@BelongsPackage: com.atqinke.designpattern.behavioraltype.state
*@Author: NieHk
*@CreateTime: 2022-08-29  09:28
*@Description: 状态类测试
*@Version: 1.0
*/
public class test {
    public static void main(String[] args) {
        Lift lift = new Lift();
        lift.setState(ILift.STOPPING_STATE);//电梯是停止的
        lift.open();//开门
        lift.close();//关门
        lift.run();//运行
        lift.stop();//停止
    }

}
